﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="joinus_in.aspx.cs" Inherits="joinus_in" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="AllOb-Table">
    <div id="AllTitle"><asp:Literal ID="ltlTitle" runat="server"></asp:Literal></div>
    <div id="ALL-Html2"><asp:Literal ID="ltlContent" runat="server"></asp:Literal></div>
    <asp:Panel ID="PanelUI" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" class="Join-Table">
      <tr>
        <td width="95">機構名稱：</td>
        <td width="485">
            <asp:TextBox ID="txtTitle" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="請輸入機構名稱"
                  ControlToValidate="txtTitle" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>機構屬性：</td>
        <td>
            <asp:CheckBoxList ID="ckblCustomField1" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Text="機構式　　" Value="機構式"></asp:ListItem>
                <asp:ListItem Text="社區式　　" Value="社區式"></asp:ListItem>
                <asp:ListItem Text="其他　　" Value="其他"></asp:ListItem>             
            </asp:CheckBoxList>
        </td>
      </tr>
      <tr>
        <td>服務區域：</td>
        <td>
            <asp:TextBox ID="txtServiceArea" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="請輸入服務區域"
                  ControlToValidate="txtServiceArea" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>單位地址</td>
        <td>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
        郵遞區號            
          <asp:TextBox ID="txtAddressZip" runat="server" CssClass="input-a" size="2"></asp:TextBox>
          縣市          
          <asp:DropDownList ID="ddlCity" runat="server" CssClass="input-a" AutoPostBack="true" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
            </asp:DropDownList>
          鄉鎮市區
          <asp:DropDownList ID="ddlCountry" runat="server" CssClass="input-a" AutoPostBack="true" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
            </asp:DropDownList>
            </ContentTemplate>
            </asp:UpdatePanel>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="請選擇縣市"
                  ControlToValidate="ddlCity" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="請選擇鄉鎮市區"
                  ControlToValidate="ddlCountry" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator> 
          </td>
      </tr>
      <tr>
        <td colspan="2">
            <asp:TextBox ID="txtAddress" runat="server" CssClass="input-a" size="60"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td>服務項目：</td>
        <td>
            <asp:TextBox ID="txtService" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="請輸入服務項目"
                  ControlToValidate="txtService" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
        <tr>
        <td colspan="2">服務對象：</td>
      </tr>
      <tr>
        <td colspan="2">
            <asp:CheckBoxList ID="ckblServiceTarget" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Text="健康銀髮族　" Value="健康銀髮族"></asp:ListItem>
                <asp:ListItem Text="失智者　" Value="失智者"></asp:ListItem>
                <asp:ListItem Text="失能　" Value="失能"></asp:ListItem>               
            </asp:CheckBoxList>
            <br />
            <div style="margin-left:3px;margin-top:-20px;">
                <asp:CheckBox ID="ckbServiceTargetOther" runat="server" Text="其他" />
                <asp:TextBox ID="txtServiceTargetOther" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            </div>
        </td>
      </tr>
      <tr>
        <td colspan="2">預計可提供服務之人力：</td>
      </tr>
      <tr>
        <td colspan="2">
            <div style="margin-left:3px;margin-top:0px;">
                <asp:CheckBox ID="ckbServiceType1" runat="server" Text="社工" />
                <asp:TextBox ID="txtServiceType1" runat="server" CssClass="input-a" Width="25px"></asp:TextBox>人
                <asp:regularexpressionvalidator id="rev1" Runat="server" ValidationExpression="[0-9]+" Display="None" ErrorMessage="社工人數請輸入正確的數字" ControlToValidate="txtServiceType1" ValidationGroup="Save"></asp:regularexpressionvalidator>
                <asp:CheckBox ID="ckbServiceType2" runat="server" Text="護理" />
                <asp:TextBox ID="txtServiceType2" runat="server" CssClass="input-a" Width="25px"></asp:TextBox>人
                <asp:regularexpressionvalidator id="Regularexpressionvalidator1" Runat="server" ValidationExpression="[0-9]+" Display="None" ErrorMessage="護理人數請輸入正確的數字" ControlToValidate="txtServiceType2" ValidationGroup="Save"></asp:regularexpressionvalidator>
                <asp:CheckBox ID="ckbServiceType3" runat="server" Text="心理" />
                <asp:TextBox ID="txtServiceType3" runat="server" CssClass="input-a" Width="25px"></asp:TextBox>人
                <asp:regularexpressionvalidator id="Regularexpressionvalidator2" Runat="server" ValidationExpression="[0-9]+" Display="None" ErrorMessage="心理人數請輸入正確的數字" ControlToValidate="txtServiceType3" ValidationGroup="Save"></asp:regularexpressionvalidator>
                <asp:CheckBox ID="ckbServiceType4" runat="server" Text="職能治療" />
                <asp:TextBox ID="txtServiceType4" runat="server" CssClass="input-a" Width="25px"></asp:TextBox>人
                <asp:regularexpressionvalidator id="Regularexpressionvalidator3" Runat="server" ValidationExpression="[0-9]+" Display="None" ErrorMessage="職能治療人數請輸入正確的數字" ControlToValidate="txtServiceType4" ValidationGroup="Save"></asp:regularexpressionvalidator>                
                <asp:CheckBox ID="ckbServiceType5" runat="server" Text="物理治療" />
                <asp:TextBox ID="txtServiceType5" runat="server" CssClass="input-a" Width="25px"></asp:TextBox>人
                <asp:regularexpressionvalidator id="Regularexpressionvalidator4" Runat="server" ValidationExpression="[0-9]+" Display="None" ErrorMessage="物理治療人數請輸入正確的數字" ControlToValidate="txtServiceType5" ValidationGroup="Save"></asp:regularexpressionvalidator>
                <p></p>         
                <asp:CheckBox ID="ckbServiceTypeOther" runat="server" Text="其他" />
                <asp:TextBox ID="txtServiceTypeOther" runat="server" CssClass="input-a" size="25"></asp:TextBox>                
            </div>
        </td>
      </tr>
      <tr>
        <td>電話：</td>
        <td>
            <asp:TextBox ID="txtPhone" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="請輸入電話"
                  ControlToValidate="txtPhone" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>聯絡人：</td>
        <td>
            <asp:TextBox ID="txtContactName" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="請輸入聯絡人"
                  ControlToValidate="txtContactName" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>電子信箱：</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="input-a" size="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="請輸入電子信箱"
                  ControlToValidate="txtEmail" Display="None" ValidationGroup="Save"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td valign="top">其他意見：</td>
        <td>
            <asp:TextBox ID="txtHtmlContent" runat="server" CssClass="input-a" cols="50" Rows="6" TextMode="MultiLine" Width="415px"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td height="56" colspan="2" align="center" valign="top">
            <asp:ImageButton ID="btnSend" runat="server" onclick="btnSend_Click" ImageUrl="image/enter.png" Width="105" Height="30" ValidationGroup="Save"/>
        　<a href="joinmember.aspx"><img src="image/delete.png" width="105" height="30"></a>
        </td>
      </tr>
    </table>
    </asp:Panel>
  </div>
  <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Save" 
        ShowMessageBox="True" ShowSummary="False"/>  
</asp:Content>

